package com.situ.skymallgateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.List;

/**
 * 网关统一认证配置
 * <p>
 * 从 application.yml 文件中读取白名单路径。
 * @author mingling
 */
@Component
@ConfigurationProperties(prefix = "gateway.auth")
public class GatewayAuthConfig {

    /**
     * 不需要JWT认证的路径白名单
     */
    private List<String> whitelist;

    public List<String> getWhitelist() {
        return whitelist;
    }

    public void setWhitelist(List<String> whitelist) {
        this.whitelist = whitelist;
    }
}
